From: Sebastian Keller Date: Sun, 19 Oct 2025 16:47:31 +0000 (+0200) Subject: dnd: Don't try to connect to transition when animations are disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~66^2^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aa1404e29cc1735514311ba8ce9c6bf8c33e6c6d;p=gnome-shell.git dnd: Don't try to connect to transition when animations are disabled When animations are disabled, the ease has finished before the get_transition() call, causing the latter to return null, which will result in an error message when connected to. Part-of: (cherry picked from commit f44f87c8e166d96c97e93c9f008ccf64aa55520a) --- diff --git a/js/ui/dnd.js b/js/ui/dnd.js index cfe8438ad..f1ddf8126 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -284,7 +284,7 @@ class _Draggable extends Signals.EventEmitter { }, }); - this._dragActor.get_transition('scale-x').connect('new-frame', () => { + this._dragActor.get_transition('scale-x')?.connect('new-frame', () => { this._updateActorPosition(origScale, origDragOffsetX, origDragOffsetY, transX, transY); });